package what.basic.runnable;
import javax.swing.*;
import what.basic.basiccomponent.*;
import java.awt.*;
class process extends Thread{
	public process(){
		JFrame f=new Jframe().jframe("swing multiple thread test", 00, 400, true);
		JPanel jp=new JPanel();
		f.setContentPane(jp);
		JButton b1=new JButton("button1");
		JButton b2=new JButton("button12");
		jp.setLayout(new GridLayout(2,2));
		jp.add(b1);
		jp.add(b2);
		f.setResizable(false);
	}
}
public class Jinvokelater {
	static process p;
	public static void main(String[] args) {
		try{
			//SwingUtilities.invokeLater(new Runnable(){
			SwingUtilities.invokeAndWait(new Runnable(){
				public void run(){
					p=new process();
					try{
						p.sleep(30000);
					}
					catch(Exception e){}
				}
			});
		}
		catch(Exception e){}
		JFrame f=new Jframe().jframe("swing thread test", 300, 00, true);
		JPanel jp=new JPanel();
		JButton b1=new JButton("b1");
		JButton b2=new JButton("b2");
		jp.setLayout(new GridLayout(2,2));
		jp.add(b1);
		jp.add(b2);
		f.setContentPane(jp);
	}
}
